package com.hzit.order.iclient;

import com.hzit.common.resp.GoodsInfo;
import com.hzit.common.resp.Resp;
import com.hzit.order.iclient.impl.GoodsClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 商品服务所有的接口
 */
@FeignClient(value = "GOODS",fallback = GoodsClientImpl.class)
public interface IGoodsClient {

    /**
     * 根据商品id查询商品信息
     * @param goodsId
     * @return
     */
    @RequestMapping("/goods/queryById/{goodsId}")
    public Resp<GoodsInfo> queryGoods(@PathVariable("goodsId") String goodsId);


}
